package generics.ClassGenerics;

import java.util.ArrayList;

//定义一个泛型类
public class MyArriList<E>  {
    ArrayList<E> list=new ArrayList<>();

    public boolean add(E e) {
        return list.add(e);
    }
    public boolean remove(E e) {
        return list.remove(e);
    }

    @Override
    public String toString() {
        return list.toString();
    }
}
